import request from "@/utils/request"

//查询系统异常信息和系统运行状态两个图标公用一个接口
export function queryWarnOrSysState(data) {
  return request({
    url: "/projectOverview/queryWarnOrSysState",
    method: "get",
    params: data
  })
}

//查询第一排第三个系统运行信息接口
export function queryProjectOverviewOne(data) {
  return request({
    url: "/projectOverview/queryProjectOverviewOne",
    method: "get",
    params: data
  })
}

//查询第二排三个图表接口
export function queryOrUpdateProjectOverviewTwo(data) {
  return request({
    url: "/projectOverview/queryOrUpdateProjectOverviewTwo",
    method: "get",
    params: data
  })
}

//查询设备下拉框接口
export function queryMyDeviceList(data) {
  return request({
    url: "/deviceShow/queryMyDeviceList",
    method: "get",
    params: data
  })
}

//查询设备物模型参数接口
export function queryRealTimeDataPullDown(data) {
  return request({
    url: "/real/queryRealTimeDataPullDown",
    method: "get",
    params: data
  })
}

//配置第二排
export function addOrUpdateProjectOverviewTwo(data) {
  return request({
    url: "/projectOverview/addOrUpdateProjectOverviewTwo",
    method: "post",
    data
  })
}

//配置第二排
export function addOrUpdateProjectOverviewOne(data) {
  return request({
    url: "/projectOverview/addOrUpdateProjectOverviewOne",
    method: "post",
    data
  })
}

//查询信息
export function queryDeviceRealOnePar(data) {
  return request({
    url: "/real/queryDeviceRealOnePar",
    method: "get",
    params: data
  })
}

//查询表格信息
export function queryOperation(data) {
  return request({
    url: "/real/queryOperation",
    method: "get",
    params: data
  })
}

// 查看设备的模型信息
export function queryDeviceRealDataInfo(data) {
  return request({
    url: "/deviceShow/queryDeviceRealDataInfo",
    method: "get",
    params: data
  })
}


// 查看顶部已配置回显信息
export function queryConfiguredParameterOne(data) {
  return request({
    url: "/bEcho/queryConfiguredParameterOne",
    method: "get",
    params: data
  })
}

// 查看图表已配置回显信息
export function queryConfiguredParameterTwo(data) {
  return request({
    url: "/bEcho/queryConfiguredParameterTwo",
    method: "get",
    params: data
  })
}


